using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraNavBar;
using DevExpress.XtraTab;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Windows.Forms;
namespace NoteManger
{
	public class FrmMonthWeekSchedule : Form
	{
		private GridView gridViewDistinctMasterWeekSchedule = null;
		private GridView gridViewMasterWeekSchedule = null;
		private GridView gridViewDetailsWeekSchedule = null;
		private GridView gridViewMasterMonthReport = null;
		private GridView gridViewDetailsMonthReport = null;
		private NoteRemote _NoteRemoteObject = null;
		private TLoginInfo _LoginInfo = new TLoginInfo();
		private ListView objListViewWeek = new ListView();
		private ListView objListViewMonth = new ListView();
		private IContainer components = null;
		private SplitContainerControl splitContainerControl1;
		private NavBarControl navBarControl;
		private NavBarGroup navBarGroupWrite;
		private XtraTabControl xtraTabControl;
		private XtraTabPage xtraTabPage1;
		private XtraScrollableControl xtraScrollableControlWeek;
		private XtraTabPage xtraTabPage2;
		private XtraScrollableControl xtraScrollableControlMonth;
		private XtraTabPage xtraTabPage3;
		private XtraTabPage xtraTabPage4;
		private NavBarGroup navBarGroupQuery;
		private SimpleButton btnClose;
		private SimpleButton btnSave;
		private SimpleButton btnCloseMonth;
		private SimpleButton btnSaveMonth;
		private ImageList imageList;
		private SimpleButton btnQueryWeekClose;
		private SimpleButton btnDelWeek;
		private SimpleButton btnQueryMonthClose;
		private SimpleButton btnDelMonth;
		private GridControl gridControlWeekSchedule;
		private RepositoryItemMemoEdit repositoryItemMemoEdit;
		private GridControl gridControlMonthReport;
		private RepositoryItemMemoEdit repositoryItemMemoEdit2;
		private GridView gridViewlMonthReport;
		private GridView gridViewWeekSchedule;
		private System.Windows.Forms.ComboBox cbbWeekScheduleTitle;
		private Label lbWeekScheduleTitle;
		private Label lbMonthReportTitle;
		private System.Windows.Forms.ComboBox cbbMonthReportTitle;
		private TextBox tboxWeekScheduleTopic;
		private Label lbWeekScheduleTopic;
		private TextBox tboxMonthReportTopic;
		private Label lbMonthReportTopic;
		private Label lbWeekSchedule;
		private System.Windows.Forms.ComboBox cbbWeekSchedule;
		private System.Windows.Forms.ComboBox cbbMonthReport;
		private Label lbMonthReport;
		public NoteRemote NoteRemoteObject
		{
			set
			{
				this._NoteRemoteObject = value;
			}
		}
		public TLoginInfo LoginInfo
		{
			set
			{
				this._LoginInfo = value;
			}
		}
		public FrmMonthWeekSchedule()
		{
			this.InitializeComponent();
		}
		private void ShowLocalMonthReportDataInGridControl(GridControl objGridControl, string aLocalMdbPath, string sqlMaster, string sqlDetail)
		{
			this.gridViewMasterMonthReport = new GridView(this.gridControlMonthReport);
			this.gridViewDetailsMonthReport = new GridView(this.gridControlMonthReport);
			System.Data.OleDb.OleDbConnection oleDbConnection = new System.Data.OleDb.OleDbConnection();
			string systemDirectory = Environment.SystemDirectory;
			string text = "Provider=Microsoft.Jet.OleDb.4.0;";
			text = text + "Data Source=" + aLocalMdbPath;
			oleDbConnection.Close();
			oleDbConnection.ConnectionString = text;
			oleDbConnection.Open();
			System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter = new System.Data.OleDb.OleDbDataAdapter();
			System.Data.OleDb.OleDbCommand oleDbCommand = new System.Data.OleDb.OleDbCommand();
			System.Data.DataSet dataSet = new System.Data.DataSet();
			oleDbCommand.Connection = oleDbConnection;
			oleDbCommand.CommandText = sqlMaster;
			oleDbDataAdapter.SelectCommand = oleDbCommand;
			oleDbDataAdapter.Fill(dataSet, "Master");
			oleDbCommand.CommandText = sqlDetail;
			oleDbDataAdapter.SelectCommand = oleDbCommand;
			oleDbDataAdapter.Fill(dataSet, "Details");
			objGridControl.MainView.Dispose();
			this.gridViewMasterMonthReport.PopulateColumns(dataSet.Tables["Master"]);
			this.gridViewMasterMonthReport.ViewCaption = "";
			this.gridViewMasterMonthReport.OptionsDetail.ShowDetailTabs = false;
			this.gridViewMasterMonthReport.Columns["ScheduleID"].Visible = false;
			for (int i = 0; i < this.gridViewMasterMonthReport.Columns.Count; i++)
			{
				this.gridViewMasterMonthReport.Columns[i].OptionsColumn.AllowEdit = false;
			}
			this.gridViewMasterMonthReport.OptionsView.ShowGroupPanel = false;
			this.gridViewMasterMonthReport.Columns[3].Width = 110;
			this.gridViewMasterMonthReport.Columns[4].ColumnEdit = this.repositoryItemMemoEdit;
			this.gridViewMasterMonthReport.OptionsView.RowAutoHeight = true;
			objGridControl.LevelTree.Nodes.Add("Details", this.gridViewDetailsMonthReport);
			this.gridViewDetailsMonthReport.PopulateColumns(dataSet.Tables["Details"]);
			this.gridViewDetailsMonthReport.Columns["ScheduleID"].Visible = false;
			for (int i = 0; i < this.gridViewDetailsMonthReport.Columns.Count; i++)
			{
				this.gridViewDetailsMonthReport.Columns[i].OptionsColumn.AllowEdit = false;
			}
			this.gridViewDetailsMonthReport.OptionsView.ShowGroupPanel = false;
			this.gridViewDetailsMonthReport.OptionsDetail.AllowExpandEmptyDetails = true;
			this.gridViewDetailsMonthReport.Columns[2].ColumnEdit = this.repositoryItemMemoEdit;
			this.gridViewDetailsMonthReport.OptionsView.RowAutoHeight = true;
			dataSet.Relations.Add("Details", dataSet.Tables["Master"].Columns["ScheduleID"], dataSet.Tables["Details"].Columns["ScheduleID"], false);
			objGridControl.LevelTree.Nodes.Add("Details", this.gridViewDetailsMonthReport);
			objGridControl.MainView = this.gridViewMasterMonthReport;
			objGridControl.DataSource = dataSet.Tables["Master"];
			objGridControl.ForceInitialize();
			oleDbDataAdapter.Dispose();
			oleDbCommand.Dispose();
			dataSet.Dispose();
		}
		private void GetUserList()
		{
			string[,] array = new string[0, 0];
			string text = "";
			bool flag = false;
			try
			{
				flag = this._NoteRemoteObject.CommonQuery("select EmpName,EmpID from Employees(nolock) where PurID = 1", ref array, ref text);
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
			if (flag)
			{
				int num = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
				for (int i = 0; i < num; i++)
				{
					this.cbbWeekSchedule.Items.Add(array[i, 0] + "(" + array[i, 1] + ")");
					this.cbbMonthReport.Items.Add(array[i, 0] + "(" + array[i, 1] + ")");
				}
			}
			else
			{
				MessageBox.Show(text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
		}
		private void ShowLocalWeekScheduleDataInGridControl(GridControl objGridControl, string aLocalMdbPath, string sqlDistinctMaster, string sqlMaster, string sqlDetail)
		{
			System.Data.OleDb.OleDbConnection oleDbConnection = new System.Data.OleDb.OleDbConnection();
			string systemDirectory = Environment.SystemDirectory;
			string text = "Provider=Microsoft.Jet.OleDb.4.0;";
			text = text + "Data Source=" + aLocalMdbPath;
			oleDbConnection.Close();
			oleDbConnection.ConnectionString = text;
			oleDbConnection.Open();
			System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter = new System.Data.OleDb.OleDbDataAdapter();
			System.Data.OleDb.OleDbCommand oleDbCommand = new System.Data.OleDb.OleDbCommand();
			System.Data.DataSet dataSet = new System.Data.DataSet();
			oleDbCommand.Connection = oleDbConnection;
			oleDbCommand.CommandText = sqlDistinctMaster;
			oleDbDataAdapter.SelectCommand = oleDbCommand;
			oleDbDataAdapter.Fill(dataSet, "DistinctMaster");
			oleDbCommand.CommandText = sqlMaster;
			oleDbDataAdapter.SelectCommand = oleDbCommand;
			oleDbDataAdapter.Fill(dataSet, "Master");
			oleDbCommand.CommandText = sqlDetail;
			oleDbDataAdapter.SelectCommand = oleDbCommand;
			oleDbDataAdapter.Fill(dataSet, "Details");
			objGridControl.MainView.Dispose();
			this.gridViewDistinctMasterWeekSchedule = new GridView(objGridControl);
			this.gridViewDistinctMasterWeekSchedule.PopulateColumns(dataSet.Tables["DistinctMaster"]);
			this.gridViewDistinctMasterWeekSchedule.OptionsDetail.ShowDetailTabs = false;
			for (int i = 0; i < this.gridViewDistinctMasterWeekSchedule.Columns.Count; i++)
			{
				this.gridViewDistinctMasterWeekSchedule.Columns[i].OptionsColumn.AllowEdit = false;
			}
			this.gridViewDistinctMasterWeekSchedule.OptionsView.ShowGroupPanel = false;
			this.gridViewDistinctMasterWeekSchedule.Columns[0].Caption = "周计划";
			this.gridViewMasterWeekSchedule = new GridView(objGridControl);
			this.gridViewMasterWeekSchedule.PopulateColumns(dataSet.Tables["Master"]);
			this.gridViewMasterWeekSchedule.OptionsDetail.ShowDetailTabs = false;
			this.gridViewMasterWeekSchedule.Columns["ScheduleID"].Visible = false;
			this.gridViewMasterWeekSchedule.Columns["ScheduleTitle"].Visible = false;
			this.gridViewMasterWeekSchedule.BestFitColumns();
			for (int i = 0; i < this.gridViewMasterWeekSchedule.Columns.Count; i++)
			{
				this.gridViewMasterWeekSchedule.Columns[i].OptionsColumn.AllowEdit = false;
			}
			this.gridViewMasterWeekSchedule.OptionsView.ShowGroupPanel = false;
			this.gridViewMasterWeekSchedule.Columns[4].ColumnEdit = this.repositoryItemMemoEdit;
			this.gridViewMasterWeekSchedule.OptionsView.RowAutoHeight = true;
			this.gridViewDetailsWeekSchedule = new GridView(objGridControl);
			objGridControl.LevelTree.Nodes.Add("Details", this.gridViewDetailsWeekSchedule);
			this.gridViewDetailsWeekSchedule.PopulateColumns(dataSet.Tables["Details"]);
			this.gridViewDetailsWeekSchedule.Columns["ScheduleID"].Visible = false;
			this.gridViewDetailsWeekSchedule.BestFitColumns();
			for (int i = 0; i < this.gridViewDetailsWeekSchedule.Columns.Count; i++)
			{
				this.gridViewDetailsWeekSchedule.Columns[i].OptionsColumn.AllowEdit = false;
			}
			this.gridViewDetailsWeekSchedule.OptionsDetail.AllowExpandEmptyDetails = true;
			this.gridViewDetailsWeekSchedule.OptionsView.ShowGroupPanel = false;
			this.gridViewDetailsWeekSchedule.Columns[2].ColumnEdit = this.repositoryItemMemoEdit;
			this.gridViewDetailsWeekSchedule.OptionsView.RowAutoHeight = true;
			dataSet.Relations.Add("RelationsMaster", dataSet.Tables["DistinctMaster"].Columns["ScheduleTitle"], dataSet.Tables["Master"].Columns["ScheduleTitle"], false);
			objGridControl.LevelTree.Nodes.Add("RelationsMaster", this.gridViewMasterWeekSchedule);
			dataSet.Relations.Add("RelationsDetails", dataSet.Tables["Master"].Columns["ScheduleID"], dataSet.Tables["Details"].Columns["ScheduleID"], false);
			objGridControl.LevelTree.Nodes["RelationsMaster"].Nodes.Add("RelationsDetails", this.gridViewDetailsWeekSchedule);
			objGridControl.MainView = this.gridViewDistinctMasterWeekSchedule;
			objGridControl.DataSource = dataSet.Tables["DistinctMaster"];
			objGridControl.ForceInitialize();
			oleDbDataAdapter.Dispose();
			oleDbCommand.Dispose();
			dataSet.Dispose();
		}
		private bool QueryDataAndSaveToLocalMdb(string aScheduleType, string aEmpID)
		{
			string[,] array = new string[0, 0];
			string text = "";
			LocalAccess localAccess = new LocalAccess();
			localAccess.Connect(NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb");
			bool result;
			if (!localAccess.Connected)
			{
				text = "保存失败！本地数据库连接失败！";
				GC.Collect();
				result = false;
			}
			else
			{
				int num = localAccess.ExecSQL("delete from ScheduleMaster");
				num = localAccess.ExecSQL("delete from ScheduleDetails");
				bool flag;
				if (aEmpID.Trim() != "")
				{
					flag = this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
					{
						"select ScheduleID,EmpID,(case ScheduleType when 0 then '周计划' when 1 then '月报' end),ScheduleTitle,CreateDate,CreateTime,Auditor,AuditDate,AuditTime,(case ScheduleState when 0 then '未审核' when 1 then '已审核' when 2 then '被置疑' end),ScheduleMemo,(case RecordState when 0 then '有效' when 1 then '无效' end),ScheduleTopic from ScheduleMaster(nolock) where ScheduleType = ",
						aScheduleType,
						" and EmpID = '",
						aEmpID,
						"'"
					}), ref array, ref text);
				}
				else
				{
					flag = this._NoteRemoteObject.CommonQuery("select ScheduleID,EmpID,(case ScheduleType when 0 then '周计划' when 1 then '月报' end),ScheduleTitle,CreateDate,CreateTime,Auditor,AuditDate,AuditTime,(case ScheduleState when 0 then '未审核' when 1 then '已审核' when 2 then '被置疑' end),ScheduleMemo,(case RecordState when 0 then '有效' when 1 then '无效' end),ScheduleTopic from ScheduleMaster(nolock) where ScheduleType = " + aScheduleType, ref array, ref text);
				}
				if (flag)
				{
					int num2 = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
					int num3 = array.GetUpperBound(1) - array.GetLowerBound(1) + 1;
					for (int i = 0; i <= num2 - 1; i++)
					{
						string aStrSql = string.Concat(new string[]
						{
							"insert into ScheduleMaster(ScheduleID,EmpID,ScheduleType,ScheduleTitle,CreateDate,CreateTime,Auditor,AuditDate,AuditTime,ScheduleState,ScheduleMemo,RecordState,ScheduleTopic) values(",
							array[i, 0],
							",'",
							array[i, 1],
							"','",
							array[i, 2],
							"','",
							array[i, 3],
							"','",
							array[i, 4],
							"','",
							array[i, 5],
							"','",
							array[i, 6],
							"','",
							array[i, 7],
							"','",
							array[i, 8],
							"','",
							array[i, 9],
							"','",
							array[i, 10],
							"','",
							array[i, 11],
							"','",
							array[i, 12],
							"')"
						});
						num = localAccess.ExecSQL(aStrSql);
						if (num != 1)
						{
							text = localAccess.Message;
							localAccess.DisConnect();
							GC.Collect();
							result = false;
							return result;
						}
					}
				}
				if (aEmpID.Trim() != "")
				{
					flag = this._NoteRemoteObject.CommonQuery("select a.Xh,a.ScheduleID,a.FieldCode,b.FieldName,a.FieldValue from ScheduleDetails a(nolock),ScheduleFieldDefine b(nolock),ScheduleMaster c(nolock) where a.FieldCode = b.FieldCode and c.EmpID = '" + aEmpID.Trim() + "' and c.ScheduleID = a.ScheduleID order by a.Xh", ref array, ref text);
				}
				else
				{
					flag = this._NoteRemoteObject.CommonQuery("select a.Xh,a.ScheduleID,a.FieldCode,b.FieldName,a.FieldValue from ScheduleDetails a(nolock),ScheduleFieldDefine b(nolock) where a.FieldCode = b.FieldCode order by a.Xh", ref array, ref text);
				}
				if (flag)
				{
					int num2 = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
					int num3 = array.GetUpperBound(1) - array.GetLowerBound(1) + 1;
					for (int i = 0; i <= num2 - 1; i++)
					{
						string aStrSql = string.Concat(new string[]
						{
							"insert into ScheduleDetails(Xh,ScheduleID,FieldCode,FieldName,FieldValue) values(",
							array[i, 0],
							",",
							array[i, 1],
							",",
							array[i, 2],
							",'",
							array[i, 3],
							"','",
							array[i, 4],
							"')"
						});
						num = localAccess.ExecSQL(aStrSql);
						if (num != 1)
						{
							text = localAccess.Message;
							localAccess.DisConnect();
							GC.Collect();
							result = false;
							return result;
						}
					}
				}
				localAccess.DisConnect();
				GC.Collect();
				result = true;
			}
			return result;
		}
		private void ShowWeekMonthFieldsEditor(string aScheduleType, XtraScrollableControl xtraScrollableControl, ListView objListView)
		{
			string[,] array = new string[0, 0];
			string text = "";
			int num = 4;
			int num2 = 0;
			int num3 = 0;
			if (this._LoginInfo.LoginSuccess)
			{
				try
				{
					bool flag = this._NoteRemoteObject.CommonQuery("select FieldCode,ScheduleType,FieldName,FieldType,NullAble,isnull(CtlHeight,0) from ScheduleFieldDefine(nolock) where ScheduleType = " + aScheduleType, ref array, ref text);
					if (flag)
					{
						int num4 = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
						int num5 = array.GetUpperBound(1) - array.GetLowerBound(1) + 1;
						if (num4 != 0)
						{
							int num6 = 5;
							Label label = new Label();
							System.Windows.Forms.ProgressBar progressBar = new System.Windows.Forms.ProgressBar();
							label.Visible = false;
							progressBar.Visible = false;
							label.Text = "正在初始化输入编辑器......";
							progressBar.Style = ProgressBarStyle.Marquee;
							label.Parent = this;
							progressBar.Parent = this;
							label.BringToFront();
							progressBar.BringToFront();
							label.AutoSize = true;
							label.BackColor = xtraScrollableControl.BackColor;
							label.Top = base.Height / 2 - 50;
							progressBar.Top = base.Height / 2 + 25 - 50;
							progressBar.Height = 15;
							progressBar.Width = 250;
							label.Left = base.Width / 2 - 50;
							progressBar.Left = base.Width / 2 - 50;
							if (aScheduleType == "0")
							{
								label.Visible = true;
								progressBar.Visible = true;
							}
							xtraScrollableControl.Visible = false;
							int num7 = 0;
							for (int i = 0; i <= num4 - 1; i++)
							{
								for (int j = 0; j <= 50000; j++)
								{
									Application.DoEvents();
								}
								ListViewItem listViewItem = new ListViewItem();
								listViewItem.Text = array[i, 0];
								listViewItem.SubItems.Add(array[i, 1]);
								listViewItem.SubItems.Add(array[i, 2]);
								listViewItem.SubItems.Add(array[i, 3]);
								listViewItem.SubItems.Add(array[i, 4]);
								listViewItem.SubItems.Add("");
								listViewItem.SubItems.Add(array[i, 5]);
								objListView.Items.Add(listViewItem);
								Label label2 = new Label();
								label2.Name = "lbExpand" + i.ToString();
								label2.Text = array[i, 2];
								label2.Parent = xtraScrollableControl;
								label2.ForeColor = System.Drawing.Color.Black;
								xtraScrollableControl.Controls.Add(label2);
								label2.Left = 2;
								if (label2.Width >= num7)
								{
									num7 = label2.Width;
								}
							}
							if (aScheduleType == "0")
							{
								this.lbWeekScheduleTitle.Left = 2;
								this.lbWeekScheduleTopic.Left = 2;
							}
							if (aScheduleType == "1")
							{
								this.lbMonthReportTitle.Left = 2;
								this.lbMonthReportTopic.Left = 2;
							}
							num7 += 2;
							for (int i = 0; i <= num4 - 1; i++)
							{
								for (int j = 0; j <= 50000; j++)
								{
									Application.DoEvents();
								}
								switch (Convert.ToInt32(array[i, 3]))
								{
								case 0:
								{
									object obj = new NumericUpDown();
									((NumericUpDown)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((NumericUpDown)obj).Name;
									((NumericUpDown)obj).Minimum = -99999999m;
									((NumericUpDown)obj).Maximum = 99999999m;
									((NumericUpDown)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((NumericUpDown)obj).Height;
									((NumericUpDown)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((NumericUpDown)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((NumericUpDown)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((NumericUpDown)obj);
									break;
								}
								case 1:
								{
									object obj = new TextBox();
									((TextBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((TextBox)obj).Name;
									((TextBox)obj).MaxLength = 16;
									((TextBox)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((TextBox)obj).Height;
									((TextBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((TextBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((TextBox)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((TextBox)obj);
									break;
								}
								case 2:
								{
									object obj = new TextBox();
									((TextBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((TextBox)obj).Name;
									((TextBox)obj).MaxLength = 32;
									((TextBox)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((TextBox)obj).Height;
									((TextBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((TextBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((TextBox)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((TextBox)obj);
									break;
								}
								case 3:
								{
									object obj = new TextBox();
									((TextBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((TextBox)obj).Name;
									((TextBox)obj).MaxLength = 64;
									((TextBox)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((TextBox)obj).Height;
									((TextBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((TextBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((TextBox)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((TextBox)obj);
									break;
								}
								case 4:
								{
									object obj = new TextBox();
									((TextBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((TextBox)obj).Name;
									((TextBox)obj).MaxLength = 128;
									((TextBox)obj).Left = num7;
									if (Convert.ToInt32(objListView.Items[i].SubItems[6].Text) == 0)
									{
										((TextBox)obj).Height = 60;
									}
									else
									{
										((TextBox)obj).Height = Convert.ToInt32(objListView.Items[i].SubItems[6].Text);
									}
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((TextBox)obj).Height;
									((TextBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((TextBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((TextBox)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((TextBox)obj);
									break;
								}
								case 5:
								{
									object obj = new TextBox();
									((TextBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((TextBox)obj).Name;
									((TextBox)obj).MaxLength = 255;
									((TextBox)obj).Left = num7;
									if (Convert.ToInt32(objListView.Items[i].SubItems[6].Text) == 0)
									{
										((TextBox)obj).Height = 60;
									}
									else
									{
										((TextBox)obj).Height = Convert.ToInt32(objListView.Items[i].SubItems[6].Text);
									}
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((TextBox)obj).Height;
									((TextBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((TextBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((TextBox)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((TextBox)obj);
									break;
								}
								case 6:
								{
									object obj = new RichTextBox();
									((RichTextBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((RichTextBox)obj).Name;
									((RichTextBox)obj).MaxLength = 1024;
									((RichTextBox)obj).Left = num7;
									if (Convert.ToInt32(objListView.Items[i].SubItems[6].Text) == 0)
									{
										((RichTextBox)obj).Height = 60;
									}
									else
									{
										((RichTextBox)obj).Height = Convert.ToInt32(objListView.Items[i].SubItems[6].Text);
									}
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((RichTextBox)obj).Height;
									((RichTextBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((RichTextBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((RichTextBox)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((RichTextBox)obj);
									break;
								}
								case 7:
								{
									object obj = new RichTextBox();
									((RichTextBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((RichTextBox)obj).Name;
									((RichTextBox)obj).MaxLength = 2048;
									((RichTextBox)obj).Left = num7;
									if (Convert.ToInt32(objListView.Items[i].SubItems[6].Text) == 0)
									{
										((RichTextBox)obj).Height = 60;
									}
									else
									{
										((RichTextBox)obj).Height = Convert.ToInt32(objListView.Items[i].SubItems[6].Text);
									}
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((RichTextBox)obj).Height;
									((RichTextBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((RichTextBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((RichTextBox)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((RichTextBox)obj);
									break;
								}
								case 8:
								{
									object obj = new DateTimePicker();
									((DateTimePicker)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((DateTimePicker)obj).Name;
									((DateTimePicker)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((DateTimePicker)obj).Height;
									((DateTimePicker)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((DateTimePicker)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((DateTimePicker)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((DateTimePicker)obj);
									break;
								}
								case 9:
								{
									object obj = new DateTimePicker();
									((DateTimePicker)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((DateTimePicker)obj).Name;
									((DateTimePicker)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((DateTimePicker)obj).Height;
									((DateTimePicker)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((DateTimePicker)obj).Format = DateTimePickerFormat.Time;
									((DateTimePicker)obj).Value = Convert.ToDateTime("00:00:00");
									((DateTimePicker)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((DateTimePicker)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((DateTimePicker)obj);
									break;
								}
								case 10:
								{
									object obj = new NumericUpDown();
									((NumericUpDown)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((NumericUpDown)obj).Name;
									((NumericUpDown)obj).Minimum = -99999999m;
									((NumericUpDown)obj).Maximum = 99999999m;
									((NumericUpDown)obj).DecimalPlaces = 2;
									((NumericUpDown)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((NumericUpDown)obj).Height;
									((NumericUpDown)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((NumericUpDown)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((NumericUpDown)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((NumericUpDown)obj);
									break;
								}
								case 11:
								{
									object obj = new NumericUpDown();
									((NumericUpDown)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((NumericUpDown)obj).Name;
									((NumericUpDown)obj).Minimum = -99999999m;
									((NumericUpDown)obj).Maximum = 99999999m;
									((NumericUpDown)obj).DecimalPlaces = 4;
									((NumericUpDown)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((NumericUpDown)obj).Height;
									((NumericUpDown)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((NumericUpDown)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((NumericUpDown)obj).Parent = xtraScrollableControl;
									xtraScrollableControl.Controls.Add((NumericUpDown)obj);
									break;
								}
								case 12:
								{
									object obj = new System.Windows.Forms.ComboBox();
									((System.Windows.Forms.ComboBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((System.Windows.Forms.ComboBox)obj).Name;
									((System.Windows.Forms.ComboBox)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((System.Windows.Forms.ComboBox)obj).Height;
									((System.Windows.Forms.ComboBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((System.Windows.Forms.ComboBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((System.Windows.Forms.ComboBox)obj).Parent = xtraScrollableControl;
									((System.Windows.Forms.ComboBox)obj).Items.Add("星期一");
									((System.Windows.Forms.ComboBox)obj).Items.Add("星期二");
									((System.Windows.Forms.ComboBox)obj).Items.Add("星期三");
									((System.Windows.Forms.ComboBox)obj).Items.Add("星期四");
									((System.Windows.Forms.ComboBox)obj).Items.Add("星期五");
									((System.Windows.Forms.ComboBox)obj).Items.Add("星期六");
									((System.Windows.Forms.ComboBox)obj).Items.Add("星期日");
									DayOfWeek dayOfWeek = DateTime.Now.DayOfWeek;
									string value = "";
									switch (dayOfWeek)
									{
									case DayOfWeek.Sunday:
										value = "星期日";
										break;
									case DayOfWeek.Monday:
										value = "星期一";
										break;
									case DayOfWeek.Tuesday:
										value = "星期二";
										break;
									case DayOfWeek.Wednesday:
										value = "星期三";
										break;
									case DayOfWeek.Thursday:
										value = "星期四";
										break;
									case DayOfWeek.Friday:
										value = "星期五";
										break;
									case DayOfWeek.Saturday:
										value = "星期六";
										break;
									}
									((System.Windows.Forms.ComboBox)obj).SelectedIndex = ((System.Windows.Forms.ComboBox)obj).Items.IndexOf(value);
									((System.Windows.Forms.ComboBox)obj).DropDownStyle = ComboBoxStyle.DropDownList;
									xtraScrollableControl.Controls.Add((System.Windows.Forms.ComboBox)obj);
									break;
								}
								case 13:
								{
									object obj = new System.Windows.Forms.ComboBox();
									((System.Windows.Forms.ComboBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((System.Windows.Forms.ComboBox)obj).Name;
									((System.Windows.Forms.ComboBox)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((System.Windows.Forms.ComboBox)obj).Height;
									((System.Windows.Forms.ComboBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((System.Windows.Forms.ComboBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((System.Windows.Forms.ComboBox)obj).Parent = xtraScrollableControl;
									if (this._LoginInfo.LoginSuccess)
									{
										this.GetUserList((System.Windows.Forms.ComboBox)obj, "");
									}
									((System.Windows.Forms.ComboBox)obj).DropDownStyle = ComboBoxStyle.DropDownList;
									xtraScrollableControl.Controls.Add((System.Windows.Forms.ComboBox)obj);
									break;
								}
								case 14:
								{
									object obj = new System.Windows.Forms.ComboBox();
									((System.Windows.Forms.ComboBox)obj).Name = "editControlExpand" + i.ToString();
									objListView.Items[i].SubItems[5].Text = ((System.Windows.Forms.ComboBox)obj).Name;
									((System.Windows.Forms.ComboBox)obj).Left = num7;
									if (i == 0)
									{
										num2 = 6;
									}
									else
									{
										num2 = num2 + num3 + 6;
									}
									num3 = ((System.Windows.Forms.ComboBox)obj).Height;
									((System.Windows.Forms.ComboBox)obj).Top = num2;
									Control[] array2 = xtraScrollableControl.Controls.Find("lbExpand" + i.ToString(), false);
									if (array2.Length != 0)
									{
										array2[0].Top = num2 + 2;
									}
									((System.Windows.Forms.ComboBox)obj).Width = xtraScrollableControl.Width - num7 - num - num6;
									((System.Windows.Forms.ComboBox)obj).Parent = xtraScrollableControl;
									if (this._LoginInfo.LoginSuccess)
									{
										this.GetUserList((System.Windows.Forms.ComboBox)obj, this._LoginInfo.GroupID);
									}
									((System.Windows.Forms.ComboBox)obj).DropDownStyle = ComboBoxStyle.DropDownList;
									xtraScrollableControl.Controls.Add((System.Windows.Forms.ComboBox)obj);
									break;
								}
								}
							}
							if (aScheduleType == "0")
							{
								this.cbbWeekScheduleTitle.Left = num7;
								this.cbbWeekScheduleTitle.Width = this.xtraTabPage1.Width - num7 - num - num6;
								this.tboxWeekScheduleTopic.Left = num7;
								this.tboxWeekScheduleTopic.Width = this.xtraTabPage1.Width - num7 - num - num6;
								this.lbWeekScheduleTitle.Visible = true;
								this.lbWeekScheduleTopic.Visible = true;
								this.cbbWeekScheduleTitle.Visible = true;
								this.tboxWeekScheduleTopic.Visible = true;
							}
							if (aScheduleType == "1")
							{
								this.cbbMonthReportTitle.Left = num7;
								this.cbbMonthReportTitle.Width = this.xtraTabPage1.Width - num7 - num - num6;
								this.tboxMonthReportTopic.Left = num7;
								this.tboxMonthReportTopic.Width = this.xtraTabPage1.Width - num7 - num - num6;
								this.lbMonthReportTitle.Visible = true;
								this.lbMonthReportTopic.Visible = true;
								this.cbbMonthReportTitle.Visible = true;
								this.tboxMonthReportTopic.Visible = true;
							}
							label.Visible = false;
							progressBar.Visible = false;
							label.Refresh();
							progressBar.Refresh();
							label.Dispose();
							progressBar.Dispose();
							xtraScrollableControl.Refresh();
							for (int i = 0; i <= xtraScrollableControl.Controls.Count - 1; i++)
							{
								Application.DoEvents();
								xtraScrollableControl.Controls[i].Visible = true;
								xtraScrollableControl.Controls[i].Refresh();
							}
							xtraScrollableControl.Visible = true;
						}
					}
					else
					{
						MessageBox.Show(text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
				}
				catch (Exception ex)
				{
					MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
			}
		}
		private void GetUserList(System.Windows.Forms.ComboBox objEmpNameComboBox, string aGroupID)
		{
			if (this._LoginInfo.LoginSuccess)
			{
				try
				{
					if (!this._NoteRemoteObject.ConnectionTest())
					{
						MessageBox.Show("远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						return;
					}
				}
				catch (Exception ex)
				{
					MessageBox.Show(ex.Message + "远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					return;
				}
				string[,] array = new string[0, 0];
				string text = "";
				if (aGroupID == "")
				{
					bool flag = this._NoteRemoteObject.CommonQuery("select EmpID,EmpName from Employees(nolock) where PurID not in(0) and RecordState = 0", ref array, ref text);
				}
				else
				{
					if (this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
					{
						bool flag = this._NoteRemoteObject.CommonQuery("select EmpID,EmpName from Employees(nolock) where PurID not in(0) and RecordState = 0", ref array, ref text);
					}
					else
					{
						bool flag = this._NoteRemoteObject.CommonQuery("select 1 from WorkGroup where ParentGroupID = " + aGroupID, ref array, ref text);
						if (array.Length != 0)
						{
							flag = this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
							{
								"select EmpID,EmpName from Employees(nolock) where PurID not in(0) and RecordState = 0 and GroupID = ",
								aGroupID,
								" union all select EmpID,EmpName from Employees(nolock) where PurID not in(0) and RecordState = 0 and GroupID in(select GroupID from WorkGroup where ParentGroupID = ",
								aGroupID,
								") "
							}), ref array, ref text);
						}
						else
						{
							flag = this._NoteRemoteObject.CommonQuery("select EmpID,EmpName from Employees(nolock) where PurID not in(0) and RecordState = 0 and GroupID = " + aGroupID, ref array, ref text);
						}
					}
				}
				if (text.Trim() != "")
				{
					MessageBox.Show("获取人员列表失败！" + text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					int num = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
					objEmpNameComboBox.Items.Clear();
					System.Windows.Forms.ComboBox comboBox = new System.Windows.Forms.ComboBox();
					for (int i = 0; i < num; i++)
					{
						comboBox.Items.Add(array[i, 0]);
						objEmpNameComboBox.Items.Add(array[i, 1]);
					}
					objEmpNameComboBox.Tag = comboBox;
				}
			}
		}
		private void Item_LinkClicked(object sender, NavBarLinkEventArgs e)
		{
			if (e.Link.Item != null)
			{
				if (Convert.ToInt32(e.Link.Item.Tag) == 0)
				{
					if (this.xtraTabPage1.PageVisible)
					{
						return;
					}
					for (int i = 0; i < this.xtraTabControl.TabPages.Count; i++)
					{
						this.xtraTabControl.TabPages[i].PageVisible = false;
					}
					this.xtraTabPage1.PageVisible = true;
					base.MinimizeBox = false;
					base.MaximizeBox = false;
					base.WindowState = FormWindowState.Normal;
					base.FormBorderStyle = FormBorderStyle.FixedSingle;
				}
				if (Convert.ToInt32(e.Link.Item.Tag) == 1)
				{
					if (this.xtraTabPage2.PageVisible)
					{
						return;
					}
					for (int i = 0; i < this.xtraTabControl.TabPages.Count; i++)
					{
						this.xtraTabControl.TabPages[i].PageVisible = false;
					}
					this.xtraTabPage2.PageVisible = true;
					base.MinimizeBox = false;
					base.MaximizeBox = false;
					base.WindowState = FormWindowState.Normal;
					base.FormBorderStyle = FormBorderStyle.FixedSingle;
				}
				if (Convert.ToInt32(e.Link.Item.Tag) == 2)
				{
					if (this.xtraTabPage3.PageVisible)
					{
						return;
					}
					for (int i = 0; i < this.xtraTabControl.TabPages.Count; i++)
					{
						this.xtraTabControl.TabPages[i].PageVisible = false;
					}
					this.xtraTabPage3.PageVisible = true;
					base.MinimizeBox = true;
					base.MaximizeBox = true;
					base.FormBorderStyle = FormBorderStyle.FixedSingle;
					this.Refresh();
					if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
					{
						this.QueryDataAndSaveToLocalMdb("0", "");
					}
					else
					{
						this.QueryDataAndSaveToLocalMdb("0", this._LoginInfo.LoginID);
					}
					string sqlDistinctMaster = "select distinct ScheduleTitle from ScheduleMaster";
					string sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle,ScheduleTopic as 周计划主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
					string sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
					this.ShowLocalWeekScheduleDataInGridControl(this.gridControlWeekSchedule, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlDistinctMaster, sqlMaster, sqlDetail);
				}
				if (Convert.ToInt32(e.Link.Item.Tag) == 3)
				{
					if (this.xtraTabPage4.PageVisible)
					{
						return;
					}
					for (int i = 0; i < this.xtraTabControl.TabPages.Count; i++)
					{
						this.xtraTabControl.TabPages[i].PageVisible = false;
					}
					this.xtraTabPage4.PageVisible = true;
					base.MinimizeBox = true;
					base.MaximizeBox = true;
					base.FormBorderStyle = FormBorderStyle.FixedSingle;
					this.Refresh();
					if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
					{
						this.QueryDataAndSaveToLocalMdb("1", "");
					}
					else
					{
						this.QueryDataAndSaveToLocalMdb("1", this._LoginInfo.LoginID);
					}
					string sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle as 月报标题,ScheduleTopic as 月报主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
					string sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
					this.ShowLocalMonthReportDataInGridControl(this.gridControlMonthReport, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlMaster, sqlDetail);
				}
				this.xtraTabControl.SelectedTabPageIndex = Convert.ToInt32(e.Link.Item.Tag);
			}
		}
		private string GetLoginGroupName()
		{
			string text = "";
			string[,] array = new string[0, 0];
			bool flag = this._NoteRemoteObject.CommonQuery("select GroupName from WorkGroup where GroupID = " + this._LoginInfo.GroupID, ref array, ref text);
			string result;
			if (flag)
			{
				result = array[0, 0];
			}
			else
			{
				result = "";
			}
			return result;
		}
		private void FrmMonthWeekReport_Shown(object sender, EventArgs e)
		{
			this.btnSave.Enabled = false;
			this.btnClose.Enabled = false;
			this.btnSaveMonth.Enabled = false;
			this.btnClose.Enabled = false;
			this.btnDelWeek.Enabled = false;
			this.btnQueryWeekClose.Enabled = false;
			this.btnDelMonth.Enabled = false;
			this.btnClose.Enabled = false;
			string loginGroupName = this.GetLoginGroupName();
			this.FillCbbWeekSchedule(loginGroupName);
			this.FillCbbMonthReport(loginGroupName);
			this.Refresh();
			NavBarItemLink navBarItemLink = this.navBarGroupWrite.AddItem();
			navBarItemLink.Item.Caption = "周计划";
			navBarItemLink.Item.Tag = 0;
			navBarItemLink.Item.LargeImageIndex = 0;
			navBarItemLink.Item.LinkClicked += new NavBarLinkEventHandler(this.Item_LinkClicked);
			navBarItemLink = this.navBarGroupWrite.AddItem();
			navBarItemLink.Item.Caption = "月报";
			navBarItemLink.Item.Tag = 1;
			navBarItemLink.Item.LargeImageIndex = 1;
			navBarItemLink.Item.LinkClicked += new NavBarLinkEventHandler(this.Item_LinkClicked);
			navBarItemLink = this.navBarGroupQuery.AddItem();
			navBarItemLink.Item.Caption = "周计划";
			navBarItemLink.Item.Tag = 2;
			navBarItemLink.Item.LargeImageIndex = 0;
			navBarItemLink.Item.LinkClicked += new NavBarLinkEventHandler(this.Item_LinkClicked);
			navBarItemLink = this.navBarGroupQuery.AddItem();
			navBarItemLink.Item.Caption = "月报";
			navBarItemLink.Item.Tag = 3;
			navBarItemLink.Item.LargeImageIndex = 1;
			navBarItemLink.Item.LinkClicked += new NavBarLinkEventHandler(this.Item_LinkClicked);
			this.navBarGroupWrite.Expanded = true;
			this.navBarGroupQuery.Expanded = true;
			if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
			{
				base.MaximizeBox = true;
				base.MinimizeBox = true;
				base.FormBorderStyle = FormBorderStyle.FixedSingle;
				this.btnDelWeek.Enabled = false;
				this.btnDelMonth.Enabled = false;
				this.navBarGroupWrite.Visible = false;
				if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
				{
					this.QueryDataAndSaveToLocalMdb("0", "");
				}
				else
				{
					this.QueryDataAndSaveToLocalMdb("0", this._LoginInfo.LoginID);
				}
				string sqlDistinctMaster = "select distinct ScheduleTitle from ScheduleMaster";
				string sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle,ScheduleTopic as 周计划主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
				string sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
				this.ShowLocalWeekScheduleDataInGridControl(this.gridControlWeekSchedule, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlDistinctMaster, sqlMaster, sqlDetail);
				if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
				{
					this.QueryDataAndSaveToLocalMdb("1", "");
				}
				else
				{
					this.QueryDataAndSaveToLocalMdb("1", this._LoginInfo.LoginID);
				}
				sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle as 月报标题,ScheduleTopic as 月报主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
				sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
				this.ShowLocalMonthReportDataInGridControl(this.gridControlMonthReport, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlMaster, sqlDetail);
				for (int i = 0; i < this.xtraTabControl.TabPages.Count; i++)
				{
					this.xtraTabControl.TabPages[i].PageVisible = false;
				}
				this.xtraTabPage3.PageVisible = true;
				this.xtraTabControl.Refresh();
			}
			if (this._LoginInfo.PurviewID == "1")
			{
				base.MaximizeBox = false;
				base.MinimizeBox = false;
				base.FormBorderStyle = FormBorderStyle.FixedSingle;
				base.WindowState = FormWindowState.Normal;
				if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
				{
					this.QueryDataAndSaveToLocalMdb("0", "");
				}
				else
				{
					this.QueryDataAndSaveToLocalMdb("0", this._LoginInfo.LoginID);
				}
				string sqlDistinctMaster = "select distinct ScheduleTitle from ScheduleMaster";
				string sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle,ScheduleTopic as 周计划主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
				string sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
				this.ShowLocalWeekScheduleDataInGridControl(this.gridControlWeekSchedule, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlDistinctMaster, sqlMaster, sqlDetail);
				if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
				{
					this.QueryDataAndSaveToLocalMdb("1", "");
				}
				else
				{
					this.QueryDataAndSaveToLocalMdb("1", this._LoginInfo.LoginID);
				}
				sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle as 月报标题,ScheduleTopic as 月报主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
				sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
				this.ShowLocalMonthReportDataInGridControl(this.gridControlMonthReport, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlMaster, sqlDetail);
				for (int i = 0; i < this.xtraTabControl.TabPages.Count; i++)
				{
					this.xtraTabControl.TabPages[i].PageVisible = false;
				}
				this.xtraTabPage1.PageVisible = true;
				this.xtraTabControl.Refresh();
				this.ShowWeekMonthFieldsEditor("0", this.xtraScrollableControlWeek, this.objListViewWeek);
				this.ShowWeekMonthFieldsEditor("1", this.xtraScrollableControlMonth, this.objListViewMonth);
			}
			if (this._LoginInfo.PurviewID == "2")
			{
			}
			this.btnSave.Enabled = true;
			this.btnClose.Enabled = true;
			this.btnSaveMonth.Enabled = true;
			this.btnClose.Enabled = true;
			this.btnDelWeek.Enabled = true;
			this.btnQueryWeekClose.Enabled = true;
			this.btnDelMonth.Enabled = true;
			this.btnClose.Enabled = true;
			this.GetUserList();
			if (this._LoginInfo.PurviewID == "0" || this._LoginInfo.PurviewID == "3" || this._LoginInfo.PurviewID == "4")
			{
				this.btnDelWeek.Enabled = false;
				this.btnDelMonth.Enabled = false;
			}
		}
		private void btnCloseWeek_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnSaveClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private Array ChangeArrayLength(Array oriArray, int Row, int Col)
		{
			Type elementType = oriArray.GetType().GetElementType();
			Array array = Array.CreateInstance(elementType, Row, Col);
			Array.Copy(oriArray, 0, array, 0, Math.Min(oriArray.Length, Row * Col));
			return array;
		}
		private void GetWeekMonthScheduleParaValue(XtraScrollableControl xtraScrollableControl, ListView objListView, ref string aParaString, ref int aParaCount, ref string[,] aArrPara)
		{
			aParaString = "";
			aParaCount = 0;
			if (objListView.Items.Count != 0)
			{
				int num = xtraScrollableControl.Controls.Count;
				num /= 2;
				aArrPara = (string[,])this.ChangeArrayLength(aArrPara, objListView.Items.Count, 2);
				for (int i = 0; i < objListView.Items.Count; i++)
				{
					ListViewItem listViewItem = new ListViewItem();
					listViewItem = objListView.Items[i];
					int num2 = Convert.ToInt32(listViewItem.SubItems[3].Text);
					string text = "";
					if (num2 == 0)
					{
						text = ((NumericUpDown)xtraScrollableControl.Controls[num + i]).Value.ToString();
					}
					if (num2 >= 1 && num2 <= 7)
					{
						if (xtraScrollableControl.Controls[num + i] is TextBox)
						{
							text = ((TextBox)xtraScrollableControl.Controls[num + i]).Text;
						}
						if (xtraScrollableControl.Controls[num + i] is RichTextBox)
						{
							text = ((RichTextBox)xtraScrollableControl.Controls[num + i]).Text;
						}
					}
					if (num2 == 8)
					{
						text = ((DateTimePicker)xtraScrollableControl.Controls[num + i]).Value.ToString("yyyy-MM-dd");
					}
					if (num2 == 9)
					{
						text = ((DateTimePicker)xtraScrollableControl.Controls[num + i]).Value.ToString("HH:mm:ss");
					}
					if (num2 == 10)
					{
						text = ((NumericUpDown)xtraScrollableControl.Controls[num + i]).Value.ToString();
					}
					if (num2 == 11)
					{
						text = ((NumericUpDown)xtraScrollableControl.Controls[num + i]).Value.ToString();
					}
					if (num2 == 12)
					{
						text = ((System.Windows.Forms.ComboBox)xtraScrollableControl.Controls[num + i]).SelectedIndex.ToString();
					}
					if (num2 == 13)
					{
						System.Windows.Forms.ComboBox comboBox = (System.Windows.Forms.ComboBox)xtraScrollableControl.Controls[num + i];
						System.Windows.Forms.ComboBox comboBox2 = (System.Windows.Forms.ComboBox)comboBox.Tag;
						if (comboBox.SelectedIndex != -1)
						{
							text = comboBox.Text + "(" + comboBox2.Items[comboBox.SelectedIndex].ToString() + ")";
						}
						else
						{
							text = "";
						}
					}
					if (num2 == 14)
					{
						System.Windows.Forms.ComboBox comboBox = (System.Windows.Forms.ComboBox)xtraScrollableControl.Controls[num + i];
						System.Windows.Forms.ComboBox comboBox2 = (System.Windows.Forms.ComboBox)comboBox.Tag;
						if (comboBox.SelectedIndex != -1)
						{
							text = comboBox.Text + "(" + comboBox2.Items[comboBox.SelectedIndex].ToString() + ")";
						}
						else
						{
							text = "";
						}
					}
					aParaString = string.Concat(new string[]
					{
						aParaString,
						listViewItem.SubItems[0].Text,
						"~",
						text,
						"|"
					});
					aParaCount++;
					aArrPara[i, 0] = listViewItem.SubItems[0].Text;
					aArrPara[i, 1] = text;
				}
			}
		}
		private bool CheckIuputInvalid(XtraScrollableControl xtraScrollableControl, ListView objListView)
		{
			bool result;
			for (int i = 0; i < objListView.Items.Count; i++)
			{
				ListViewItem listViewItem = new ListViewItem();
				listViewItem = objListView.Items[i];
				if (listViewItem.SubItems[4].Text == "1")
				{
					if (Convert.ToInt32(listViewItem.SubItems[3].Text) >= 1 && Convert.ToInt32(listViewItem.SubItems[3].Text) <= 7)
					{
						for (int j = 0; j < xtraScrollableControl.Controls.Count; j++)
						{
							if (xtraScrollableControl.Controls[j].Name == listViewItem.SubItems[5].Text)
							{
								if (xtraScrollableControl.Controls[j].Text == "")
								{
									MessageBox.Show("<" + listViewItem.SubItems[2].Text + ">不能为空！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
									xtraScrollableControl.Controls[j].Focus();
									result = false;
									return result;
								}
							}
						}
					}
				}
			}
			result = true;
			return result;
		}
		private bool ClearIuput(XtraScrollableControl xtraScrollableControl, ListView objListView)
		{
			for (int i = 0; i < objListView.Items.Count; i++)
			{
				ListViewItem listViewItem = new ListViewItem();
				listViewItem = objListView.Items[i];
				for (int j = 0; j < xtraScrollableControl.Controls.Count; j++)
				{
					if (xtraScrollableControl.Controls[j].Name == listViewItem.SubItems[5].Text)
					{
						if (Convert.ToInt32(listViewItem.SubItems[3].Text) == 0)
						{
							((NumericUpDown)xtraScrollableControl.Controls[j]).Value = 0m;
						}
						if (Convert.ToInt32(listViewItem.SubItems[3].Text) >= 1 && Convert.ToInt32(listViewItem.SubItems[3].Text) <= 7)
						{
							xtraScrollableControl.Controls[j].Text = "";
						}
						if (Convert.ToInt32(listViewItem.SubItems[3].Text) == 8)
						{
						}
						if (Convert.ToInt32(listViewItem.SubItems[3].Text) == 9)
						{
						}
						if (Convert.ToInt32(listViewItem.SubItems[3].Text) == 10)
						{
							((NumericUpDown)xtraScrollableControl.Controls[j]).Value = 0m;
						}
						if (Convert.ToInt32(listViewItem.SubItems[3].Text) == 11)
						{
							((NumericUpDown)xtraScrollableControl.Controls[j]).Value = 0m;
						}
						if (Convert.ToInt32(listViewItem.SubItems[3].Text) >= 12 && Convert.ToInt32(listViewItem.SubItems[3].Text) <= 14)
						{
							((System.Windows.Forms.ComboBox)xtraScrollableControl.Controls[j]).SelectedIndex = -1;
						}
					}
				}
			}
			return true;
		}
		private void btnSave_Click(object sender, EventArgs e)
		{
			string text = "";
			int num = 0;
			string[,] array = new string[0, 0];
			string[,] array2 = new string[0, 0];
			string text2 = "";
			string text3 = "";
			if (this.xtraTabControl.SelectedTabPageIndex == 0)
			{
				text2 = this.cbbWeekScheduleTitle.Text;
				text3 = this.tboxWeekScheduleTopic.Text;
				if (text2.IndexOf(",") >= 0)
				{
					text2 = text2.Substring(0, text2.Length - 3);
				}
				if (text2.Trim() == "")
				{
					this.cbbWeekScheduleTitle.Focus();
					MessageBox.Show("没有选择周计划标题！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					return;
				}
				if (text3.Trim() == "")
				{
					this.tboxWeekScheduleTopic.Focus();
					MessageBox.Show("没有输入周计划主题！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					return;
				}
				if (!this.CheckIuputInvalid(this.xtraScrollableControlWeek, this.objListViewWeek))
				{
					return;
				}
				this.GetWeekMonthScheduleParaValue(this.xtraScrollableControlWeek, this.objListViewWeek, ref text, ref num, ref array);
			}
			if (this.xtraTabControl.SelectedTabPageIndex == 1)
			{
				text2 = this.cbbMonthReportTitle.Text;
				text3 = this.tboxMonthReportTopic.Text;
				if (text2.Trim() == "")
				{
					this.cbbWeekScheduleTitle.Focus();
					MessageBox.Show("没有选择月报标题！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					return;
				}
				if (text3.Trim() == "")
				{
					this.tboxMonthReportTopic.Focus();
					MessageBox.Show("没有输入月报主题！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					return;
				}
				if (!this.CheckIuputInvalid(this.xtraScrollableControlMonth, this.objListViewMonth))
				{
					return;
				}
				this.GetWeekMonthScheduleParaValue(this.xtraScrollableControlMonth, this.objListViewMonth, ref text, ref num, ref array);
			}
			string text4 = "";
			bool flag = this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
			{
				"exec usp_wn_weekmonthschedule ",
				this.xtraTabControl.SelectedTabPageIndex.ToString(),
				",'",
				this._LoginInfo.LoginID,
				"','",
				text2,
				"','",
				text3,
				"','",
				text,
				"',",
				num.ToString()
			}), ref array2, ref text4);
			if (flag)
			{
				if (array2[0, 0] == "T")
				{
					if (this.xtraTabControl.SelectedTabPageIndex == 0)
					{
						this.cbbWeekScheduleTitle.SelectedIndex = -1;
						this.tboxWeekScheduleTopic.Text = "";
						this.ClearIuput(this.xtraScrollableControlWeek, this.objListViewWeek);
					}
					if (this.xtraTabControl.SelectedTabPageIndex == 1)
					{
						this.cbbMonthReportTitle.SelectedIndex = -1;
						this.tboxMonthReportTopic.Text = "";
						this.ClearIuput(this.xtraScrollableControlMonth, this.objListViewMonth);
					}
					MessageBox.Show("保存成功！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					MessageBox.Show(array2[0, 1], "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
			}
			else
			{
				MessageBox.Show(text4, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
		}
		private void FillCbbMonthReport(string aGroupName)
		{
			this.cbbMonthReportTitle.Items.Clear();
			for (int i = 1; i <= 12; i++)
			{
				this.cbbMonthReportTitle.Items.Add(string.Concat(new string[]
				{
					aGroupName,
					"_",
					DateTime.Now.ToString("yyyy年"),
					i.ToString("00"),
					"月_月报"
				}));
			}
		}
		private void FillCbbWeekSchedule(string aGroupName)
		{
			int num = this.CalcWeek() + 1;
			this.cbbWeekScheduleTitle.Items.Clear();
			for (int i = 1; i < num; i++)
			{
				if (i == num - 1)
				{
					this.cbbWeekScheduleTitle.Items.Add(string.Concat(new string[]
					{
						aGroupName,
						"_",
						DateTime.Now.ToString("yyyy年"),
						"第",
						i.ToString("00"),
						"周_周计划 (",
						this.GetWeek(DateTime.Now.Year, i + 1),
						"),下周"
					}));
				}
				else
				{
					if (i == num - 2)
					{
						this.cbbWeekScheduleTitle.Items.Add(string.Concat(new string[]
						{
							aGroupName,
							"_",
							DateTime.Now.ToString("yyyy年"),
							"第",
							i.ToString("00"),
							"周_周计划 (",
							this.GetWeek(DateTime.Now.Year, i + 1),
							"),本周"
						}));
					}
					else
					{
						if (i == num - 3)
						{
							this.cbbWeekScheduleTitle.Items.Add(string.Concat(new string[]
							{
								aGroupName,
								"_",
								DateTime.Now.ToString("yyyy年"),
								"第",
								i.ToString("00"),
								"周_周计划 (",
								this.GetWeek(DateTime.Now.Year, i + 1),
								"),上周"
							}));
						}
						else
						{
							this.cbbWeekScheduleTitle.Items.Add(string.Concat(new string[]
							{
								aGroupName,
								"_",
								DateTime.Now.ToString("yyyy年"),
								"第",
								i.ToString("00"),
								"周_周计划 (",
								this.GetWeek(DateTime.Now.Year, i + 1),
								")"
							}));
						}
					}
				}
			}
		}
		public string GetWeek(int nYear, int nNumWeek)
		{
			DateTime dateTime = DateTime.Now;
			DateTime dateTime2 = DateTime.Now;
			DateTime d = new DateTime(nYear, 1, 1);
			d += new TimeSpan((nNumWeek - 1) * 7, 0, 0, 0);
			dateTime = d.AddDays((double)(-(double)d.DayOfWeek + 1));
			dateTime2 = d.AddDays((double)(DayOfWeek.Saturday - d.DayOfWeek + 1));
			return dateTime.ToString("MM月dd日") + " - " + dateTime2.ToString("MM月dd日");
		}
		private int CalcWeek()
		{
			int num = Convert.ToInt32(DateTime.Now.DayOfWeek);
			int num2 = -1 * (num + 1);
			int dayOfYear = DateTime.Now.AddDays((double)num2).DayOfYear;
			int num3 = dayOfYear / 7;
			if (dayOfYear % 7 != 0)
			{
				num3++;
			}
			return num3 + 1;
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnSaveMonth_Click(object sender, EventArgs e)
		{
			this.btnSave_Click(sender, e);
		}
		private void btnCloseMonth_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnQueryWeekClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnQueryMonthClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnDelWeek_Click(object sender, EventArgs e)
		{
			string text = "";
			string text2 = "";
			string[,] array = new string[0, 0];
			if (this.xtraTabControl.SelectedTabPageIndex == 2)
			{
				GridView gridView = (GridView)this.gridViewDistinctMasterWeekSchedule.GetDetailView(0, 0);
				if (gridView.GetFocusedRowCellValue("ScheduleID") != null)
				{
					text = gridView.GetFocusedRowCellValue("ScheduleID").ToString();
				}
				else
				{
					text = "";
				}
			}
			if (this.xtraTabControl.SelectedTabPageIndex == 3)
			{
				if (this.gridViewMasterMonthReport.GetFocusedRowCellValue("ScheduleID") != null)
				{
					text = this.gridViewMasterMonthReport.GetFocusedRowCellValue("ScheduleID").ToString();
				}
				else
				{
					text = "";
				}
			}
			if (text == "")
			{
				MessageBox.Show("请选择要删除的周计划或者月报！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
			else
			{
				if (MessageBox.Show("确定要删除所选项吗？", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != DialogResult.No)
				{
					bool flag = this._NoteRemoteObject.CommonQuery("exec usp_wn_delwsmr @scheduleid=" + text, ref array, ref text2);
					if (flag)
					{
						if (array[0, 0] == "T")
						{
							MessageBox.Show("删除成功！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
							if (this.xtraTabControl.SelectedTabPageIndex == 2)
							{
								GridView gridView = (GridView)this.gridViewDistinctMasterWeekSchedule.GetDetailView(0, 0);
								gridView.DeleteSelectedRows();
							}
							if (this.xtraTabControl.SelectedTabPageIndex == 3)
							{
								this.gridViewMasterMonthReport.DeleteSelectedRows();
							}
						}
						else
						{
							MessageBox.Show(array[0, 1], "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
					}
					else
					{
						MessageBox.Show(text2, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
				}
			}
		}
		private void btnDelMonth_Click(object sender, EventArgs e)
		{
			this.btnDelWeek_Click(sender, e);
		}
		private void FrmMonthWeekSchedule_FormClosing(object sender, FormClosingEventArgs e)
		{
			this.objListViewWeek.Dispose();
			this.objListViewMonth.Dispose();
		}
		private void cbbWeekSchedule_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (this.cbbWeekSchedule.SelectedIndex != -1)
			{
				string text = this.cbbWeekSchedule.Text;
				text = text.Substring(text.IndexOf("("));
				text = text.Replace("(", "");
				text = text.Replace(")", "");
				this.QueryDataAndSaveToLocalMdb("0", text);
				string sqlDistinctMaster = "select distinct ScheduleTitle from ScheduleMaster";
				string sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle,ScheduleTopic as 周计划主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
				string sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
				this.ShowLocalWeekScheduleDataInGridControl(this.gridControlWeekSchedule, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlDistinctMaster, sqlMaster, sqlDetail);
			}
		}
		private void cbbMonthReport_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (this.cbbMonthReport.SelectedIndex != -1)
			{
				string text = this.cbbMonthReport.Text;
				text = text.Substring(text.IndexOf("("));
				text = text.Replace("(", "");
				text = text.Replace(")", "");
				this.QueryDataAndSaveToLocalMdb("1", text);
				string sqlMaster = "select ScheduleID,EmpID as 用户代码,ScheduleType as 类别,ScheduleTitle as 月报标题,ScheduleTopic as 月报主题,CreateDate as 创建日期,CreateTime as 创建时间,Auditor as 审核人,AuditDate as 审核日期,AuditTime as 审核时间,ScheduleState as 计划状态,ScheduleMemo as 置疑说明,RecordState as 记录状态 from ScheduleMaster";
				string sqlDetail = "select ScheduleID,FieldName as 名称,FieldValue as 值 from ScheduleDetails order by Xh";
				this.ShowLocalMonthReportDataInGridControl(this.gridControlMonthReport, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlMaster, sqlDetail);
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.components = new Container();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmMonthWeekSchedule));
			this.splitContainerControl1 = new SplitContainerControl();
			this.navBarControl = new NavBarControl();
			this.navBarGroupWrite = new NavBarGroup();
			this.navBarGroupQuery = new NavBarGroup();
			this.imageList = new ImageList(this.components);
			this.xtraTabControl = new XtraTabControl();
			this.xtraTabPage1 = new XtraTabPage();
			this.tboxWeekScheduleTopic = new TextBox();
			this.lbWeekScheduleTopic = new Label();
			this.lbWeekScheduleTitle = new Label();
			this.cbbWeekScheduleTitle = new System.Windows.Forms.ComboBox();
			this.btnClose = new SimpleButton();
			this.btnSave = new SimpleButton();
			this.xtraScrollableControlWeek = new XtraScrollableControl();
			this.xtraTabPage2 = new XtraTabPage();
			this.tboxMonthReportTopic = new TextBox();
			this.lbMonthReportTopic = new Label();
			this.lbMonthReportTitle = new Label();
			this.cbbMonthReportTitle = new System.Windows.Forms.ComboBox();
			this.btnCloseMonth = new SimpleButton();
			this.btnSaveMonth = new SimpleButton();
			this.xtraScrollableControlMonth = new XtraScrollableControl();
			this.xtraTabPage3 = new XtraTabPage();
			this.cbbWeekSchedule = new System.Windows.Forms.ComboBox();
			this.lbWeekSchedule = new Label();
			this.gridControlWeekSchedule = new GridControl();
			this.gridViewWeekSchedule = new GridView();
			this.repositoryItemMemoEdit = new RepositoryItemMemoEdit();
			this.btnQueryWeekClose = new SimpleButton();
			this.btnDelWeek = new SimpleButton();
			this.xtraTabPage4 = new XtraTabPage();
			this.cbbMonthReport = new System.Windows.Forms.ComboBox();
			this.lbMonthReport = new Label();
			this.gridControlMonthReport = new GridControl();
			this.gridViewlMonthReport = new GridView();
			this.repositoryItemMemoEdit2 = new RepositoryItemMemoEdit();
			this.btnQueryMonthClose = new SimpleButton();
			this.btnDelMonth = new SimpleButton();
			((ISupportInitialize)this.splitContainerControl1).BeginInit();
			this.splitContainerControl1.SuspendLayout();
			((ISupportInitialize)this.navBarControl).BeginInit();
			((ISupportInitialize)this.xtraTabControl).BeginInit();
			this.xtraTabControl.SuspendLayout();
			this.xtraTabPage1.SuspendLayout();
			this.xtraTabPage2.SuspendLayout();
			this.xtraTabPage3.SuspendLayout();
			((ISupportInitialize)this.gridControlWeekSchedule).BeginInit();
			((ISupportInitialize)this.gridViewWeekSchedule).BeginInit();
			((ISupportInitialize)this.repositoryItemMemoEdit).BeginInit();
			this.xtraTabPage4.SuspendLayout();
			((ISupportInitialize)this.gridControlMonthReport).BeginInit();
			((ISupportInitialize)this.gridViewlMonthReport).BeginInit();
			((ISupportInitialize)this.repositoryItemMemoEdit2).BeginInit();
			base.SuspendLayout();
			this.splitContainerControl1.Dock = DockStyle.Fill;
			this.splitContainerControl1.Location = new System.Drawing.Point(0, 0);
			this.splitContainerControl1.Name = "splitContainerControl1";
			this.splitContainerControl1.Panel1.Controls.Add(this.navBarControl);
			this.splitContainerControl1.Panel1.Text = "Panel1";
			this.splitContainerControl1.Panel2.Controls.Add(this.xtraTabControl);
			this.splitContainerControl1.Panel2.Text = "Panel2";
			this.splitContainerControl1.Size = new System.Drawing.Size(717, 437);
			this.splitContainerControl1.SplitterPosition = 172;
			this.splitContainerControl1.TabIndex = 30;
			this.splitContainerControl1.Text = "splitContainerControl1";
			this.navBarControl.ActiveGroup = this.navBarGroupWrite;
			this.navBarControl.ContentButtonHint = null;
			this.navBarControl.Dock = DockStyle.Fill;
			this.navBarControl.Groups.AddRange(new NavBarGroup[]
			{
				this.navBarGroupWrite,
				this.navBarGroupQuery
			});
			this.navBarControl.LargeImages = this.imageList;
			this.navBarControl.Location = new System.Drawing.Point(0, 0);
			this.navBarControl.Name = "navBarControl";
			this.navBarControl.OptionsNavPane.ExpandedWidth = 190;
			this.navBarControl.Size = new System.Drawing.Size(168, 433);
			this.navBarControl.TabIndex = 29;
			this.navBarControl.Text = "navBarControl1";
			this.navBarGroupWrite.Caption = "编写";
			this.navBarGroupWrite.GroupStyle = NavBarGroupStyle.LargeIconsList;
			this.navBarGroupWrite.Name = "navBarGroupWrite";
			this.navBarGroupQuery.Caption = "查询";
			this.navBarGroupQuery.Expanded = true;
			this.navBarGroupQuery.GroupStyle = NavBarGroupStyle.LargeIconsList;
			this.navBarGroupQuery.Name = "navBarGroupQuery";
			this.imageList.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("imageList.ImageStream");
			this.imageList.TransparentColor = System.Drawing.Color.Transparent;
			this.imageList.Images.SetKeyName(0, "Grid-Select All.ico");
			this.imageList.Images.SetKeyName(1, "Grid-Select Cell-2.ico");
			this.xtraTabControl.Dock = DockStyle.Fill;
			this.xtraTabControl.Location = new System.Drawing.Point(0, 0);
			this.xtraTabControl.Name = "xtraTabControl";
			this.xtraTabControl.SelectedTabPage = this.xtraTabPage1;
			this.xtraTabControl.Size = new System.Drawing.Size(535, 433);
			this.xtraTabControl.TabIndex = 0;
			this.xtraTabControl.TabPages.AddRange(new XtraTabPage[]
			{
				this.xtraTabPage1,
				this.xtraTabPage2,
				this.xtraTabPage3,
				this.xtraTabPage4
			});
			this.xtraTabPage1.Controls.Add(this.tboxWeekScheduleTopic);
			this.xtraTabPage1.Controls.Add(this.lbWeekScheduleTopic);
			this.xtraTabPage1.Controls.Add(this.lbWeekScheduleTitle);
			this.xtraTabPage1.Controls.Add(this.cbbWeekScheduleTitle);
			this.xtraTabPage1.Controls.Add(this.btnClose);
			this.xtraTabPage1.Controls.Add(this.btnSave);
			this.xtraTabPage1.Controls.Add(this.xtraScrollableControlWeek);
			this.xtraTabPage1.Name = "xtraTabPage1";
			this.xtraTabPage1.Size = new System.Drawing.Size(526, 401);
			this.xtraTabPage1.Text = "编写周计划";
			this.tboxWeekScheduleTopic.Location = new System.Drawing.Point(70, 33);
			this.tboxWeekScheduleTopic.Name = "tboxWeekScheduleTopic";
			this.tboxWeekScheduleTopic.Size = new System.Drawing.Size(452, 21);
			this.tboxWeekScheduleTopic.TabIndex = 10;
			this.tboxWeekScheduleTopic.Visible = false;
			this.lbWeekScheduleTopic.AccessibleName = "k";
			this.lbWeekScheduleTopic.AutoSize = true;
			this.lbWeekScheduleTopic.Location = new System.Drawing.Point(9, 36);
			this.lbWeekScheduleTopic.Name = "lbWeekScheduleTopic";
			this.lbWeekScheduleTopic.Size = new System.Drawing.Size(53, 12);
			this.lbWeekScheduleTopic.TabIndex = 9;
			this.lbWeekScheduleTopic.Text = "计划主题";
			this.lbWeekScheduleTopic.Visible = false;
			this.lbWeekScheduleTitle.AccessibleName = "";
			this.lbWeekScheduleTitle.AutoSize = true;
			this.lbWeekScheduleTitle.Location = new System.Drawing.Point(9, 10);
			this.lbWeekScheduleTitle.Name = "lbWeekScheduleTitle";
			this.lbWeekScheduleTitle.Size = new System.Drawing.Size(53, 12);
			this.lbWeekScheduleTitle.TabIndex = 8;
			this.lbWeekScheduleTitle.Text = "计划标题";
			this.lbWeekScheduleTitle.Visible = false;
			this.cbbWeekScheduleTitle.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbWeekScheduleTitle.Location = new System.Drawing.Point(70, 6);
			this.cbbWeekScheduleTitle.Name = "cbbWeekScheduleTitle";
			this.cbbWeekScheduleTitle.Size = new System.Drawing.Size(452, 20);
			this.cbbWeekScheduleTitle.TabIndex = 7;
			this.cbbWeekScheduleTitle.Visible = false;
			this.btnClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnClose.Location = new System.Drawing.Point(447, 375);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new System.Drawing.Size(75, 23);
			this.btnClose.TabIndex = 5;
			this.btnClose.Text = "关闭(&C)";
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			this.btnSave.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnSave.Location = new System.Drawing.Point(366, 375);
			this.btnSave.Name = "btnSave";
			this.btnSave.Size = new System.Drawing.Size(75, 23);
			this.btnSave.TabIndex = 4;
			this.btnSave.Text = "保存(&S)";
			this.btnSave.Click += new EventHandler(this.btnSave_Click);
			this.xtraScrollableControlWeek.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.xtraScrollableControlWeek.Location = new System.Drawing.Point(0, 60);
			this.xtraScrollableControlWeek.Name = "xtraScrollableControlWeek";
			this.xtraScrollableControlWeek.Size = new System.Drawing.Size(526, 309);
			this.xtraScrollableControlWeek.TabIndex = 0;
			this.xtraTabPage2.Controls.Add(this.tboxMonthReportTopic);
			this.xtraTabPage2.Controls.Add(this.lbMonthReportTopic);
			this.xtraTabPage2.Controls.Add(this.lbMonthReportTitle);
			this.xtraTabPage2.Controls.Add(this.cbbMonthReportTitle);
			this.xtraTabPage2.Controls.Add(this.btnCloseMonth);
			this.xtraTabPage2.Controls.Add(this.btnSaveMonth);
			this.xtraTabPage2.Controls.Add(this.xtraScrollableControlMonth);
			this.xtraTabPage2.Name = "xtraTabPage2";
			this.xtraTabPage2.Size = new System.Drawing.Size(526, 401);
			this.xtraTabPage2.Text = "编写月报";
			this.tboxMonthReportTopic.Location = new System.Drawing.Point(70, 33);
			this.tboxMonthReportTopic.Name = "tboxMonthReportTopic";
			this.tboxMonthReportTopic.Size = new System.Drawing.Size(452, 21);
			this.tboxMonthReportTopic.TabIndex = 12;
			this.tboxMonthReportTopic.Visible = false;
			this.lbMonthReportTopic.AccessibleName = "";
			this.lbMonthReportTopic.AutoSize = true;
			this.lbMonthReportTopic.Location = new System.Drawing.Point(9, 36);
			this.lbMonthReportTopic.Name = "lbMonthReportTopic";
			this.lbMonthReportTopic.Size = new System.Drawing.Size(53, 12);
			this.lbMonthReportTopic.TabIndex = 11;
			this.lbMonthReportTopic.Text = "月报主题";
			this.lbMonthReportTopic.Visible = false;
			this.lbMonthReportTitle.AutoSize = true;
			this.lbMonthReportTitle.Location = new System.Drawing.Point(9, 10);
			this.lbMonthReportTitle.Name = "lbMonthReportTitle";
			this.lbMonthReportTitle.Size = new System.Drawing.Size(53, 12);
			this.lbMonthReportTitle.TabIndex = 10;
			this.lbMonthReportTitle.Text = "月报标题";
			this.lbMonthReportTitle.Visible = false;
			this.cbbMonthReportTitle.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbMonthReportTitle.Location = new System.Drawing.Point(70, 6);
			this.cbbMonthReportTitle.Name = "cbbMonthReportTitle";
			this.cbbMonthReportTitle.Size = new System.Drawing.Size(452, 20);
			this.cbbMonthReportTitle.TabIndex = 9;
			this.btnCloseMonth.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnCloseMonth.Location = new System.Drawing.Point(447, 375);
			this.btnCloseMonth.Name = "btnCloseMonth";
			this.btnCloseMonth.Size = new System.Drawing.Size(75, 23);
			this.btnCloseMonth.TabIndex = 7;
			this.btnCloseMonth.Text = "关闭(&C)";
			this.btnCloseMonth.Click += new EventHandler(this.btnCloseMonth_Click);
			this.btnSaveMonth.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnSaveMonth.Location = new System.Drawing.Point(366, 375);
			this.btnSaveMonth.Name = "btnSaveMonth";
			this.btnSaveMonth.Size = new System.Drawing.Size(75, 23);
			this.btnSaveMonth.TabIndex = 6;
			this.btnSaveMonth.Text = "保存(&S)";
			this.btnSaveMonth.Click += new EventHandler(this.btnSaveMonth_Click);
			this.xtraScrollableControlMonth.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.xtraScrollableControlMonth.Location = new System.Drawing.Point(0, 60);
			this.xtraScrollableControlMonth.Name = "xtraScrollableControlMonth";
			this.xtraScrollableControlMonth.Size = new System.Drawing.Size(526, 309);
			this.xtraScrollableControlMonth.TabIndex = 1;
			this.xtraTabPage3.Controls.Add(this.cbbWeekSchedule);
			this.xtraTabPage3.Controls.Add(this.lbWeekSchedule);
			this.xtraTabPage3.Controls.Add(this.gridControlWeekSchedule);
			this.xtraTabPage3.Controls.Add(this.btnQueryWeekClose);
			this.xtraTabPage3.Controls.Add(this.btnDelWeek);
			this.xtraTabPage3.Name = "xtraTabPage3";
			this.xtraTabPage3.Size = new System.Drawing.Size(526, 401);
			this.xtraTabPage3.Text = "查询周计划";
			this.cbbWeekSchedule.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.cbbWeekSchedule.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbWeekSchedule.FormattingEnabled = true;
			this.cbbWeekSchedule.Location = new System.Drawing.Point(81, 376);
			this.cbbWeekSchedule.Name = "cbbWeekSchedule";
			this.cbbWeekSchedule.Size = new System.Drawing.Size(162, 20);
			this.cbbWeekSchedule.TabIndex = 13;
			this.cbbWeekSchedule.SelectedIndexChanged += new EventHandler(this.cbbWeekSchedule_SelectedIndexChanged);
			this.lbWeekSchedule.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.lbWeekSchedule.AutoSize = true;
			this.lbWeekSchedule.Location = new System.Drawing.Point(2, 380);
			this.lbWeekSchedule.Name = "lbWeekSchedule";
			this.lbWeekSchedule.Size = new System.Drawing.Size(77, 12);
			this.lbWeekSchedule.TabIndex = 12;
			this.lbWeekSchedule.Text = "周计划创建者";
			this.gridControlWeekSchedule.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.gridControlWeekSchedule.EmbeddedNavigator.Name = "";
			this.gridControlWeekSchedule.Location = new System.Drawing.Point(0, 0);
			this.gridControlWeekSchedule.MainView = this.gridViewWeekSchedule;
			this.gridControlWeekSchedule.Name = "gridControlWeekSchedule";
			this.gridControlWeekSchedule.RepositoryItems.AddRange(new RepositoryItem[]
			{
				this.repositoryItemMemoEdit
			});
			this.gridControlWeekSchedule.Size = new System.Drawing.Size(526, 368);
			this.gridControlWeekSchedule.TabIndex = 11;
			this.gridControlWeekSchedule.ViewCollection.AddRange(new BaseView[]
			{
				this.gridViewWeekSchedule
			});
			this.gridViewWeekSchedule.GridControl = this.gridControlWeekSchedule;
			this.gridViewWeekSchedule.Name = "gridViewWeekSchedule";
			this.gridViewWeekSchedule.OptionsView.RowAutoHeight = true;
			this.gridViewWeekSchedule.OptionsView.ShowGroupPanel = false;
			this.repositoryItemMemoEdit.Name = "repositoryItemMemoEdit";
			this.btnQueryWeekClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnQueryWeekClose.Location = new System.Drawing.Point(447, 374);
			this.btnQueryWeekClose.Name = "btnQueryWeekClose";
			this.btnQueryWeekClose.Size = new System.Drawing.Size(75, 23);
			this.btnQueryWeekClose.TabIndex = 9;
			this.btnQueryWeekClose.Text = "关闭(&C)";
			this.btnQueryWeekClose.Click += new EventHandler(this.btnQueryWeekClose_Click);
			this.btnDelWeek.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnDelWeek.Location = new System.Drawing.Point(366, 374);
			this.btnDelWeek.Name = "btnDelWeek";
			this.btnDelWeek.Size = new System.Drawing.Size(75, 23);
			this.btnDelWeek.TabIndex = 8;
			this.btnDelWeek.Text = "删除(&D)";
			this.btnDelWeek.Click += new EventHandler(this.btnDelWeek_Click);
			this.xtraTabPage4.Controls.Add(this.cbbMonthReport);
			this.xtraTabPage4.Controls.Add(this.lbMonthReport);
			this.xtraTabPage4.Controls.Add(this.gridControlMonthReport);
			this.xtraTabPage4.Controls.Add(this.btnQueryMonthClose);
			this.xtraTabPage4.Controls.Add(this.btnDelMonth);
			this.xtraTabPage4.Name = "xtraTabPage4";
			this.xtraTabPage4.Size = new System.Drawing.Size(526, 401);
			this.xtraTabPage4.Text = "查询月报";
			this.cbbMonthReport.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.cbbMonthReport.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbMonthReport.FormattingEnabled = true;
			this.cbbMonthReport.Location = new System.Drawing.Point(81, 376);
			this.cbbMonthReport.Name = "cbbMonthReport";
			this.cbbMonthReport.Size = new System.Drawing.Size(162, 20);
			this.cbbMonthReport.TabIndex = 15;
			this.cbbMonthReport.SelectedIndexChanged += new EventHandler(this.cbbMonthReport_SelectedIndexChanged);
			this.lbMonthReport.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.lbMonthReport.AutoSize = true;
			this.lbMonthReport.Location = new System.Drawing.Point(2, 380);
			this.lbMonthReport.Name = "lbMonthReport";
			this.lbMonthReport.Size = new System.Drawing.Size(65, 12);
			this.lbMonthReport.TabIndex = 14;
			this.lbMonthReport.Text = "月报创建者";
			this.gridControlMonthReport.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.gridControlMonthReport.EmbeddedNavigator.Name = "";
			this.gridControlMonthReport.Location = new System.Drawing.Point(0, 0);
			this.gridControlMonthReport.MainView = this.gridViewlMonthReport;
			this.gridControlMonthReport.Name = "gridControlMonthReport";
			this.gridControlMonthReport.RepositoryItems.AddRange(new RepositoryItem[]
			{
				this.repositoryItemMemoEdit2
			});
			this.gridControlMonthReport.Size = new System.Drawing.Size(526, 368);
			this.gridControlMonthReport.TabIndex = 12;
			this.gridControlMonthReport.ViewCollection.AddRange(new BaseView[]
			{
				this.gridViewlMonthReport
			});
			this.gridViewlMonthReport.GridControl = this.gridControlMonthReport;
			this.gridViewlMonthReport.Name = "gridViewlMonthReport";
			this.gridViewlMonthReport.OptionsView.GroupDrawMode = GroupDrawMode.Office2003;
			this.gridViewlMonthReport.OptionsView.RowAutoHeight = true;
			this.gridViewlMonthReport.OptionsView.ShowGroupPanel = false;
			this.repositoryItemMemoEdit2.Name = "repositoryItemMemoEdit2";
			this.btnQueryMonthClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnQueryMonthClose.Location = new System.Drawing.Point(447, 374);
			this.btnQueryMonthClose.Name = "btnQueryMonthClose";
			this.btnQueryMonthClose.Size = new System.Drawing.Size(75, 23);
			this.btnQueryMonthClose.TabIndex = 9;
			this.btnQueryMonthClose.Text = "关闭(&C)";
			this.btnQueryMonthClose.Click += new EventHandler(this.btnQueryMonthClose_Click);
			this.btnDelMonth.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnDelMonth.Location = new System.Drawing.Point(366, 374);
			this.btnDelMonth.Name = "btnDelMonth";
			this.btnDelMonth.Size = new System.Drawing.Size(75, 23);
			this.btnDelMonth.TabIndex = 8;
			this.btnDelMonth.Text = "删除(&D)";
			this.btnDelMonth.Click += new EventHandler(this.btnDelMonth_Click);
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(717, 437);
			base.Controls.Add(this.splitContainerControl1);
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "FrmMonthWeekSchedule";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "周计划、月报管理";
			base.Shown += new EventHandler(this.FrmMonthWeekReport_Shown);
			base.FormClosing += new FormClosingEventHandler(this.FrmMonthWeekSchedule_FormClosing);
			((ISupportInitialize)this.splitContainerControl1).EndInit();
			this.splitContainerControl1.ResumeLayout(false);
			((ISupportInitialize)this.navBarControl).EndInit();
			((ISupportInitialize)this.xtraTabControl).EndInit();
			this.xtraTabControl.ResumeLayout(false);
			this.xtraTabPage1.ResumeLayout(false);
			this.xtraTabPage1.PerformLayout();
			this.xtraTabPage2.ResumeLayout(false);
			this.xtraTabPage2.PerformLayout();
			this.xtraTabPage3.ResumeLayout(false);
			this.xtraTabPage3.PerformLayout();
			((ISupportInitialize)this.gridControlWeekSchedule).EndInit();
			((ISupportInitialize)this.gridViewWeekSchedule).EndInit();
			((ISupportInitialize)this.repositoryItemMemoEdit).EndInit();
			this.xtraTabPage4.ResumeLayout(false);
			this.xtraTabPage4.PerformLayout();
			((ISupportInitialize)this.gridControlMonthReport).EndInit();
			((ISupportInitialize)this.gridViewlMonthReport).EndInit();
			((ISupportInitialize)this.repositoryItemMemoEdit2).EndInit();
			base.ResumeLayout(false);
		}
	}
}
